﻿@{
    ViewBag.Title = "单位信息";
}
<link href="@Url.Content("~/Content/themes/base/datatable_ui.css")" rel="stylesheet" type="text/css" />
<script src="@Url.Content("~/Scripts/jquery.dataTables.js")" type="text/javascript"></script>


<script type="text/javascript">
    $(function () {
        var datatablelang = {
            "sLengthMenu": "每页显示 _MENU_ 条记录",
            "sZeroRecords": "没有找到任何记录",
            "sInfo": "_START_ 到 _END_ - 共 _TOTAL_ 条记录",
            "sInfoEmpty": " 0 到 0 - 共 0 records",
            "sInfoFiltered": "(从 _MAX_ 条记录中过滤后的结果)",

            "sProcessing": "处理中...",
            "sEmptyTable": "表中没有可用数据",
            "sSearch": "搜索 :",
            "oPaginate": {
                "sFirst": "首页",
                "sPrevious": "上一页",
                "sNext": "下一页",
                "sLast": "末页"
            }
        };
        $("table").dataTable({
            "bAutoWidth": false,
            "oSearch": { "sSearch": "", "bRegex": false, "bSmart": false },
            "bSort": false,
            "bLengthChange": true,
            "bInfo": true,
            "sPaginationType": "full_numbers",
            "bJQueryUI": true,
            "iDisplayLength": 10,
            "bServerSide": true,
            "bProcessing": true,
            "sAjaxSource": "/Organization/List",
            "oLanguage": datatablelang,
            "aoColumnDefs": [
                 { "fnRender": function (oObj) { return "<a href='/Organization/Edit/" + oObj.aData[0] + "'>编辑</a>"; }, "aTargets": [0] },
                 { "bSearchable": false, "aTargets": [0] },
                 { "bSearchable": false, "aTargets": [2] },
                 { "bSearchable": false, "aTargets": [3] },
                 { "bSearchable": false, "aTargets": [4] },
                 { "bSearchable": false, "aTargets": [5] },
                 { "bSearchable": false, "aTargets": [6] },
                 { "bSearchable": false, "aTargets": [7] },
                 { "bSearchable": false, "aTargets": [8] },
                 { "bSearchable": false, "aTargets": [9] }
             ]
        });
    });
</script>
<div id="content">
<h2>单位信息</h2>
<p><a href="/Organization/Create">新建单位信息</a></p>
<table class="display">
<thead>
    <tr>
        <th></th>
        <th>单位名称</th>
        <th>联系人</th>
        <th>联系电话</th>
        <th>单位属性</th>
        <th>隶属省部</th>
        <th>所在地区</th>      
        <th>邮政编码</th>            
        <th>通讯地址</th>
        <th>电子邮件</th>
    </tr>
</thead>
<tbody>

</tbody>
<tfoot>
    <tr>
        <th></th>
        <th>单位名称</th>
        <th>联系人</th>
        <th>联系电话</th>
        <th>单位属性</th>
        <th>隶属省部</th>
        <th>所在地区</th>     
        <th>邮政编码</th>            
        <th>通讯地址</th>
        <th>电子邮件</th>
    </tr>
</tfoot>
</table>
</div>